#ifndef LOGINDIALOG_H
#define LOGINDIALOG_H

#include <QObject>
#include <QDialog>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QSqlDatabase>
#include <QDebug>

class LoginDialog : public QDialog
{
    Q_OBJECT
public:
    LoginDialog(QWidget *parent);
    ~LoginDialog();

public slots:
    void loginCheck(bool checked);
private:
    QLabel *userName;
    QLabel *passwd;
    QLineEdit *userNameEdit;
    QLineEdit *passwdEdit;
    QPushButton *login;
    QPushButton *cancel;
    QSqlDatabase database;
};

#endif // LOGINDIALOG_H
